package com.roc.common;

import java.io.File;
import java.io.Serializable;
import java.util.List;

import com.roc.pojo.TPosAgent;
import com.roc.pojo.YjPosAgent;

public class Excel2007YJPosAgentFileProcessor implements FileProcessor{

	@Override
	public List<? extends Serializable> process(File file) throws Exception {
		XxlsYjPosAgent x = new XxlsYjPosAgent();
		x.process(file);
		List<YjPosAgent> result = x.getTrans();
		x = null;
		return result;
	}
	@Override
	public List<? extends Serializable> ysbprocess(File file) throws Exception {
		XxlsTPosAgent x = new XxlsTPosAgent();
		x.process(file);
		List<TPosAgent> result = x.getTrans();
		x = null;
		return result;
	}

	@Override
	public List<? extends Serializable> processPsamCard(File file)
			throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

}
